Tamara\Wp\Plugin\Services\WCTamaraGateway D

Total Complexity 332
Dependencies 30
Dependents 3
Total lines 2,646
Lines of code 1,785
Logical lines of code 788
Comment lines 474
Methods 97
Properties 18

Methods 97

Method Rating Maintainability Complexity Lines of code
tamaraCheckoutSession()
C
32 27 101
initFormFields()
C
21
7 321
populateTamaraShippingAddress()
A
57 17 13
tamaraCancelOrder()
A
42 13 51
getCountryPaymentTypes()
A
45 11 40
captureWcOrder()
A
41 9 57
populateTamaraAddress()
A
53 9 20
populateTamaraOrderItems()
A
41 6 59
adjustTamaraGatewayOnCheckout()
A
49 8 28
populateTamaraRefundOrderItems()
A
42 6 55
onSaveSettings()
A
46 7 39
tamaraCapturePayment()
A
52 8 22
isMethodAvailableFromRemote()
S
53 7 22
validateRequiredFields()
S
61 8 10
getTamaraCaptureId()
S
51 6 26
getTamaraCancelId()
S
51 6 26
getTamaraOrderId()
S
51 6 26
getAvailableSupportedInstalments()
S
46 5 35
renderTamaraCountryPaymentTypesHtml()
S
50 5 28
renderTamaraPayNowOptionHtml()
S
50 5 28
getAvailablePayLaterOptions()
S
54 5 20
getAvailablePayNowOptions()
S
54 5 20
populateTamaraWebhook()
S
59 5 15
registerTamaraWebhook()
S
50 4 29
refinePublicKey()
S
60 5 14
getTamaraCancelUrl()
S
53 4 27
getTamaraFailureUrl()
S
53 4 27
populateTamaraOrder()
S
49 4 26
generatePayLaterOptionContent()
S
61 5 11
generatePayNowOptionContent()
S
61 5 11
isSingleCheckoutEnabled()
S
56 4 19
getPublicKeyFromRemote()
S
56 4 19
countInstalmentPlans()
S
58 4 15
verifyApiParams()
S
56 3 20
deleteTamaraWebhook()
S
56 3 19
init()
S
57 3 16
getCurrentCountryCode()
S
65 4 8
handleTamaraSuccessOrderReceivedPage()
S
61 3 11
createTamaraCheckoutSession()
S
58 2 16
setTamaraIconForPaymentGateway()
S
64 3 9
getWebhookId()
S
69 3 7
initBaseAttributes()
S
59 2 14
initTamaraClient()
S
59 2 14
getPaymentTypeTitleMapping()
S
59 2 14
generatePayInXOptionsContent()
S
59 2 13
getTamaraIpnUrl()
S
63 2 12
getTamaraWebhookUrl()
S
63 2 12
renderPaymentTypeDescription()
S
63 2 11
getErrorMap()
S
54 1 21
populateTamaraMerchantUrl()
S
56 1 19
getPaymentTypeMapping()
S
57 1 19
getStoreBaseCountryCode()
S
78 2 3
getDefaultBillingCountryCode()
S
75 2 4
isBeautifyMerchantUrlsEnabled()
S
78 2 3
getPaymentTypes()
S
68 2 7
getTamaraSuccessUrl()
S
68 2 7
processRewriteRules()
S
69 2 7
populateMinLimit()
S
71 2 5
populateMaxLimit()
S
71 2 5
populateTamaraDefaultDescription()
S
65 2 9
isCartTotalValid()
S
71 2 5
renderHelpTextsHtml()
S
60 1 15
prepareDebugLogDownloadLink()
S
63 2 10
populateTamaraConsumer()
S
60 1 13
populateTamaraRiskAssessment()
S
60 1 13
initSettingAttributes()
S
60 1 13
buildCountryPaymentTypesCacheKeyV2()
S
63 1 11
__construct()
S
78 1 4
getPayByLaterTitle()
S
81 1 3
getPayByLaterTitleAr()
S
81 1 3
getPayInXTitle()
S
79 1 3
getPayInXTitleAr()
S
79 1 3
isWebhookEnabled()
S
80 1 3
isSandboxMode()
S
79 1 3
isLiveMode()
S
79 1 3
initSettings()
S
81 1 3
processAdminOptions()
S
81 1 3
process_payment()
S
80 1 3
populateTamaraBillingAddress()
S
76 1 4
getShippingInfo()
S
69 1 7
raiseAdminError()
S
74 1 5
raiseAdminErrorOnNonSelectedPaymentTypes()
S
73 1 6
updateThisSettingsToOptions()
S
66 1 10
initTamaraStatus()
S
63 1 9
getCurrencyToCountryMapping()
S
67 1 8
getCountryCodeToCountryMapping()
S
67 1 8
buildCountryPaymentTypesCacheKey()
S
71 1 6
get_option_key()
S
81 1 3
buildTamaraClient()
S
68 1 7
refreshPaymentTypeCache()
S
77 1 4
refreshPaymentTypeCacheV2()
S
77 1 4
populateDefaultPayInXTitles()
S
70 1 6
updateTamaraCaptureId()
S
75 1 4
updateTamaraOrderId()
S
75 1 4
updateTamaraCancelId()
S
75 1 4
convertAllowedCountryStringValue()
S
75 1 4
getPublicKey()
S
82 1 3